
import Taro,{ useLaunch } from "@tarojs/taro";
import "./app.less";
import { getAccessToken, getUserInfo } from "./utils/auth";


function App({ children }) {
  useLaunch(()=>{
    // if(!getAccessToken()||!getUserInfo()){
    //   Taro.reLaunch({
    //     url: 'pages/login/index'
    //   })
    // }
  })
  // children 是将要会渲染的页面
  return children;
}

export default App;
